package com.zhz.system.contract.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 分配角色请求
 *
 * @author zhouhengzhe
 * @date 2023/4/2
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RoleAssignPermRequest {

    @ApiModelProperty("主键ID")
    @NotBlank(message = "主键ID不能为空")
    private String id;

    @ApiModelProperty("权限ID列表")
    @NotEmpty(message = "权限ID列表不能为空")
    private List<String> permIds;
}
